#include "stdafx.h"
#include "envexplorer.h"
#include <QtWidgets/QApplication>

int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	QTranslator * tsl = new QTranslator( NULL );
	tsl->load("envexplorer_fr");
	a.installTranslator( tsl );

	try
	{
		EnvExplorer w;
		w.initialise();
		w.show();
		return a.exec();
	}
	catch( std::exception ex )
	{
		QMessageBox::critical( NULL, "Critical Error", ex.what() );
	}
	catch( ... )
	{
		QMessageBox::critical( NULL, "Critical Error", "Unknown error ..." );
	}
	return -1;
}
